Do not allow the cursor to go to a separator row. Fixes #441219, modified
authorKristian Rietveld <kris@imendio.com>
Wed, 22 Aug 2007 14:26:32 +0000 (14:26 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Wed, 22 Aug 2007 14:26:32 +0000 (14:26 +0000)
commit31fc4289c7436542bdbc9c2fcb2c1127bfcf2089
treea304e6c2bf215765a64fa04f400987cc508481a3
parent0f9230d30aa6c19b480536444f8cb12c1c462a08
Do not allow the cursor to go to a separator row. Fixes #441219, modified

2007-08-22  Kristian Rietveld  <kris@imendio.com>

Do not allow the cursor to go to a separator row.  Fixes #441219,
modified patch by Carlos Garnacho.

* gtk/gtktreeview.c (row_is_separator): new inline function
for calling the row-separator-func, made all of gtktreeview.c use
this function instead of calling the func themselves,
(gtk_tree_view_button_press): treat a click on a separator like
a click on empty space,
(gtk_tree_view_update_rubber_band_selection_rage): skip
non-selectable rows,
(search_first_focusable_path),
(gtk_tree_view_focus_to_cursor),
(gtk_tree_view_move_cursor_up_down),
(gtk_tree_view_move_cursor_page_up_down),
(gtk_tree_view_move_cursor_start_end): skip separators,
(gtk_tree_view_real_set_cursor): do not allow setting the cursor
on a separator.

svn path=/trunk/; revision=18672
ChangeLog
gtk/gtktreeview.c